package chapter01.oop;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Phone
 * Package: chapter01
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-09-17
 * Time: 22:22
 */

public class Phone {
    //面向对象

    //属性
    String name; //品牌
    double price; //价格

    //方法
    public void call() {
        System.out.println("手机打电话");
    }

    public void sendMessage(String message) {
        System.out.println("发送信息: " + message);
    }

    public void playGame() {
        System.out.println("手机可以玩游戏");
    }

}
